package com.fz.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fz.core.BaseEntity;
import java.io.Serializable;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

/**
 * <p>
 * 角色表
 * </p>
 *
 * @author fz
 * @since 2024-08-15
 */
@Data

@NoArgsConstructor
@TableName("t_role")
public class TRole extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 名称
     */
    private String name;

    /**
     * 描述
     */
    private String description;

    /**
     * 权限列表
     */
    private String permission;

    /**
     * 状态
     */
    private boolean status ;

    public TRole(long id, boolean status) {
        super(id);
        this.status = status;
    }


    public TRole(String name, String description, String permission) {
        this.name = name;
        this.description = description;
        this.permission = permission;
        status = true;
    }

    public TRole(long id, String name, String description, String permission) {
        super(id);
        this.name = name;
        this.description = description;
        this.permission = permission;
        status = true;
    }


}
